package com.project.bean;

import java.time.LocalDate;
import java.util.List;

/**
 * 项目实体类
 */
public class ProjectBean {
    //项目ID
    private int projectID;
    //项目名称
    private String projectName;
    //客户名称
    private String clientele;
    //项目资金
    private int money;
    //项目启动时间
    private LocalDate startTime=LocalDate.now();
    //项目交付日期
    private LocalDate delivery;
    // 项目的状态
    private String status = "开发中";
    //剩余开发天数
    private int days;
    //参与开发人数
    private int num;
    //参与开发员工

    private List<ProgressBean> progress;
    public ProjectBean() {
    }

    public LocalDate getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDate startTime) {
        this.startTime = startTime;
    }

    public int getDays() {
        return days;
    }

    public void setDays(int days) {
        this.days = days;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public List<ProgressBean> getProgress() {
        return progress;
    }

    public void setProgress(List<ProgressBean> progress) {
        this.progress = progress;
    }

    @Override
    public String toString() {
        return "ProjectBean{" +
                "projectID=" + projectID +
                ", projectName='" + projectName + '\'' +
                ", clientele='" + clientele + '\'' +
                ", money=" + money +
                ", startTime=" + startTime +
                ", delivery=" + delivery +
                ", status='" + status + '\'' +
                ", days=" + days +
                ", num=" + num +
                ", progress=" + progress +
                '}'+"\n";
    }

    public ProjectBean(String projectName, String clientele, int money, String delivery) {
        this.projectName = projectName;
        this.clientele = clientele;
        this.money = money;
        this.delivery = LocalDate.parse(delivery);
    }

    public int getProjectID() {
        return projectID;
    }

    public void setProjectID(int projectID) {
        this.projectID = projectID;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getClientele() {
        return clientele;
    }

    public void setClientele(String clientele) {
        this.clientele = clientele;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public LocalDate getDelivery() {
        return delivery;
    }

    public void setDelivery(LocalDate delivery) {
        this.delivery = delivery;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

}
